package cn.tedu.egmybatis1.mapper;

import cn.tedu.egmybatis1.pojo.entity.Product;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author 董代恒
 * @version 1.0
 */
@Mapper
public interface ProductMapper {
    @Insert("insert into product(title, price, stock) values(#{title},#{price},#{stock})")
    void insert(Product product);
}
